package cn.com.open.itembank.controller;

import cn.com.open.itembank.dto.ComposePaper;
import cn.com.open.itembank.dto.TestPaperModel;
import cn.com.open.itembank.service.ComposePaperService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * Created by lucky on 2018/1/24.
 */
@RestController
@RequestMapping(value = "/composepaper")
public class ComposePaperController {

    @Autowired
    private ComposePaperService service;

    //region 遗传算法组卷

    /**
     * 遗传算法组卷.
     *
     * @param composePaper the compose paper
     * @return the test paper model
     */
    @PostMapping(value = "/composePaperGenetic")
    public TestPaperModel composePaperGenetic(@RequestBody ComposePaper composePaper) {
        return service.composePaperGenetic(composePaper);
    }
    //endregion
}
